package com.work.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName imsvalues
 */
@TableName(value ="imsvalues")
@Data
public class Imsvalues implements Serializable {
    /**
     * 
     */
    @TableField(value = "corporationcode")
    private String corporationcode;

    /**
     * 
     */
    @TableField(value = "imskey")
    private String imskey;

    /**
     * 
     */
    @TableField(value = "imsvalue")
    private String imsvalue;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date update_time;

    @TableLogic(value = "0", delval = "1")
    @TableField(value = "deleted")
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public void setImskey(Object imskey) {
        this.imskey = String.valueOf(imskey);
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Imsvalues other = (Imsvalues) that;
        return (this.getCorporationcode() == null ? other.getCorporationcode() == null : this.getCorporationcode().equals(other.getCorporationcode()))
            && (this.getImskey() == null ? other.getImskey() == null : this.getImskey().equals(other.getImskey()))
            && (this.getImsvalue() == null ? other.getImsvalue() == null : this.getImsvalue().equals(other.getImsvalue()))
            && (this.getUpdate_time() == null ? other.getUpdate_time() == null : this.getUpdate_time().equals(other.getUpdate_time()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCorporationcode() == null) ? 0 : getCorporationcode().hashCode());
        result = prime * result + ((getImskey() == null) ? 0 : getImskey().hashCode());
        result = prime * result + ((getImsvalue() == null) ? 0 : getImsvalue().hashCode());
        result = prime * result + ((getUpdate_time() == null) ? 0 : getUpdate_time().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", corporationcode=").append(corporationcode);
        sb.append(", imskey=").append(imskey);
        sb.append(", imsvalue=").append(imsvalue);
        sb.append(", update_time=").append(update_time);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}